package ch7;

import java.util.*;

public class Calc {
	public static void main(String[] args) {
		System.out.println("请输入被除数：");
		Scanner in = new Scanner(System.in);
		int a = 0;
		while (!in.hasNextInt()) {
			// a = in.nextInt();
		}
		a = in.nextInt();
		System.out.println("输入除数：");
		int b = in.nextInt();

		int shang = a / b;
		System.out.println(a + "/" + b + "=" + shang);
	}
}
